/*
 * Copyright: Tianjin Berheley Tech Co,.ltd, China
 * biPlatForm
 * com.berheley.bi.exception -> JSException.java
 * Created on 2009-10-21-下午01:30:56
 */
package com.webframe.exception;

/**
 * 类功能描述：
 *
 * @author      <a href="mailto:tozxwu@hotmail.com">wuzhenxue </a>
 * Create:      2009-10-21 下午01:30:56
 * Description: 
 */
@SuppressWarnings("serial")
public class JSException extends RuntimeException {

	protected Object[] args;
	private boolean wrapperObject;
	
	public JSException(String message) {
		super(message);
	}

	public JSException(String message, Throwable cause) {
		super(message, cause);
		this.wrapperObject = true;
	}

	public JSException(Throwable cause) {
		super(cause);
		this.wrapperObject = true;
	}

	public JSException(String message, Object[] args) {
		super(message);
		this.args = args;
	}

	/**
	 * @return Returns the args.
	 */
	public Object[] getArgs() {
		return args;
	}

	/**
	 * @param args The args to set.
	 */
	public void setArgs(Object[] args) {
		this.args = args;
	}

	/**
	 * @return Returns the wrapperObject.
	 */
	public boolean isWrapperObject() {
		return wrapperObject;
	}

	/**
	 * @param wrapperObject The wrapperObject to set.
	 */
	public void setWrapperObject(boolean wrapperObject) {
		this.wrapperObject = wrapperObject;
	}
}
